Travelpayouts\components\Model B

Total Complexity 85
Dependencies 9
Dependents 1
Total lines 515
Lines of code 236
Logical lines of code 129
Comment lines 193
Methods 28
Properties 3

Methods 28

Method Rating Maintainability Complexity Lines of code
scenarios()
B
46 17 41
get_active_validators()
S
54 7 20
validate()
S
53 6 22
safe_attributes()
S
59 5 14
set_attributes()
S
63 5 10
active_attributes()
S
59 4 14
get_attributes()
S
61 4 13
add_errors()
S
65 4 9
create_validators()
S
62 4 10
attributes()
S
63 3 10
getErrors()
S
70 3 6
clear_errors()
S
71 2 6
get_validators()
S
71 2 6
camel2words()
S
65 2 8
has_errors()
S
70 2 6
get_error()
S
78 2 3
get_attribute_label()
S
74 2 4
set_scenario()
S
81 1 3
after_validate()
S
91 1 2
get_scenario()
S
82 1 3
rules()
S
82 1 3
before_validate()
S
82 1 3
is_attribute_safe()
S
79 1 3
getExtraAttributes()
S
73 1 5
generate_attribute_label()
S
79 1 3
attribute_labels()
S
82 1 3
add_error()
S
80 1 3
extraAttributes()
S
82 1 3